package com.player;

import android.media.MediaPlayer;

public class SingleMediaPlayer extends MediaPlayer {
	private static MediaPlayer mp;
	
//	public SingleMediaPlayer() {
//		getMediaPlayer();
//	}
	
	public static MediaPlayer getMediaPlayer() {
		if (mp instanceof MediaPlayer){
			mp.reset();
			return mp;
		} else {
			mp = new MediaPlayer();
			return mp;
		}
	}
}
